<?php

     // Brikut kode PHPnya

     $jumlah = 7;

     $rss = simplexml_load_file("https://inaproc.lkpp.go.id/v3/inaproc.rss");

     $berhitung = 1;

     foreach($rss->channel->item as $data)

     {

       echo '<p><a href="'.$data->link.'">'.$data->title.'</a></p>';

       echo '<p>'.$data->pubDate.'</p>';

       echo '<p>'.$data->description.'</p>';

       if ($berhitung == $jumlah) break;

       else $berhitung++;

     }

?>